package org.hzandyy.zookeeper.util;

import org.apache.zookeeper.KeeperException;

public class KeeperAsyncUtils {

    public static KeeperException.Code code(int rc) {
        return KeeperException.Code.get(rc);
    }

    public static String exception(int rc) {
        return KeeperException.create(code(rc)).toString();
    }

    public static String exception(int rc, String path) {
        return KeeperException.create(code(rc), path).toString();
    }

}
